var index=0;

$("#btn_append").click(function () {
    index++;
    var content= '<div class="form-group row">'+
                    '<label class="col-sm-1 text-left control-label col-form-label">内容名称</label>'+
                    '<div class="col-sm-5">'+
                        '<input type="text" onblur="specvName_validata(this)" id="specvName_'+index+'" index="'+index+'" name="specvNames" placeholder="请输入规格名称" class="form-control">'+
                    '</div>'+
                    '<button type="button" onclick="remove(this)" class="btn btn-outline-primary">删除</button>'+
                    '<label id="specvName_info_'+index+'" class="col-sm-5 text-left control-label col-form-label"></label>'+
                '</div>';

    $("#specv_content").append(content);
})

function remove (element){
   var parent= $(element).parent();

   $(parent).remove();
}